#ifndef QGRAVITYGRAPHICSITEM_H
#define QGRAVITYGRAPHICSITEM_H

#include "qlifegraphicsitem.h"

class QGravity;

/**
	@author Stefan Weigert <stefan.weigert@mailbox.tu-dresden.de>
*/
class QGravityGraphicsItem : public QLifeGraphicsItem
{
	public:
		QGravityGraphicsItem ( QGravity* gravity, QColor color );

		~QGravityGraphicsItem();

		void advance ( int phase );
		void paint ( QPainter* painter, const QStyleOptionGraphicsItem* option = 0, QWidget* widget = 0 );

	private:
		QRectF visibleRect;
		QColor color;
};

#endif
